<?php
require_once 'drink/coffee/Coffee.php';
require_once 'drink/coffee/NaTieCoffee.php';
require_once 'drink/coffee/SuRongCoffee.php';
require_once 'drink/Condiment/Condiment.php';
require_once 'drink/Condiment/MilkCondiment.php';
require_once 'drink/Condiment/SoybeanCondiment.php';
require_once 'drink/Capacity/Capacity.php';
require_once 'drink/Capacity/BigCapacity.php';
require_once 'drink/Capacity/XiaoCapacity.php';


//一杯牛奶拿铁咖啡
$natieCoffee    = new NaTieCoffee();
$milk           = new MilkCondiment($natieCoffee);
echo $milk->getDescription()."：$".$milk->cost();
echo "<br>";

//一杯牛奶，豆浆，拿铁咖啡
$soybean        = new SoybeanCondiment($milk);
echo $soybean->getDescription()."：$".$soybean->cost();
echo "<br>";

//大杯的豆浆，拿铁咖啡
$big = new BigCapacity($soybean);
echo $big->getDescription()."：$".$big->cost();
echo "<br>";